package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.Date;
import java.util.List;

//套餐
public interface SetmealService {

    //套餐分页查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //套餐新增
    void sava(Setmeal setmeal);

    //套餐起售停售
    void updateStatus(Integer status, List<Long> ids);

    //套餐修改回显
    Setmeal findById(Long id);

    //套餐修改
    void update(Setmeal setmeal);

    //删除套餐
    void deleteBatchIds(List<Long> ids);

    //根据分类id+状态查询菜品列表
    List<Setmeal> findList(Long categoryId, Integer status);

    //查询套餐内菜品
    List<Dish> findDishDetail(Long id);
}
